package com.swfee.qinben.httpactions;

import java.util.List;

import com.swfee.qinben.dto.req.MessageReqDto;
import com.swfee.qinben.dto.rsp.MessageRspDto;
import com.swfee.qinben.httpactions.base.ReqBaseAction;

public class MessageAction extends ReqBaseAction<MessageReqDto,MessageRspDto> {

	
	public MessageAction() {
		super();
		setDefaultRspClass(MessageRspDto.class);
	}
	
	@Override
	public String getBaseActionUrl() {
		return "/webService/MedicalCare.CommonServices/Messages.asmx";
	}
	
	
	public List<MessageRspDto> getMessages(String msgType){
		String actionName = "/GetMessages";
		MessageReqDto dto = new MessageReqDto();
		dto.setMessageType(msgType);
		return  doHttpForList(dto, actionName);
	}
	

	public List<MessageRspDto> getTopMessages(){
		String actionName = "/GetTopMessages";
		MessageReqDto dto = new MessageReqDto();
		dto.setMessageType("");
		return  doHttpForList(dto, actionName);
	}


}
